package Inheritance;

class Base{
    public int a=1;
    public int b=2;
}

class Derived extends Base{
    public int a=100;
    public int c=3;
    public void test() {
        System.out.println(this.a);//100
        System.out.println(super.a);//1
        System.out.println(this.b);
        System.out.println(super.b);
        System.out.println(this.c);
//        System.out.println(super.c);
    }
}

public class Test3 {
    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.test();
    }
}
